# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qmltermwidget
pkgver=0.2.0
pkgrel=1
arch="all"
url="https://github.com/swordfish90/qmltermwidget"
license="GPL-2.0-or-later"
pkgdesc="QML port of qtermwidget"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/swordfish90/qmltermwidget/archive/$pkgver.tar.gz"
options="!check" # Requires X11 running

build() {
	qmake-qt5
	make
}

check() {
	/usr/lib/qt5/bin/qmlscene -l . test-app/test-app.qml
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}
sha512sums="544d57296de6999b86bf2b921d1d93ac5d7eddd02eea436df4ecea0966c82389e716310fd7e4d13dd918bc1b3fd2d02f953c713dc5b4abcfc56d3f3f617adf43  qmltermwidget-0.2.0.tar.gz"
